package xiaozhi.modules.security.oauth2;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 第三方API认证Token
 */
public class ThirdPartyAuthenticationToken implements AuthenticationToken {
    
    private String apiKey;
    
    public ThirdPartyAuthenticationToken(String apiKey) {
        this.apiKey = apiKey;
    }
    
    @Override
    public String getPrincipal() {
        return apiKey;
    }
    
    @Override
    public Object getCredentials() {
        return apiKey;
    }
}